package com.fr.design.plugin.mdnl;

import com.fr.design.data.datapane.connect.DatabaseConnectionPane;
import com.fr.data.impl.multidimensional.xmla.XMLADatabaseConnection;

import javax.swing.*;

/**
* @author : richie
* @since : 8.0
*/
public class XMLAConnectionPane extends DatabaseConnectionPane<XMLADatabaseConnection> {
    private static XMLADefPane XMLADefPane = new XMLADefPane();

    @Override
    protected JPanel mainPanel() {
        return XMLADefPane;
    }

    @Override
    protected boolean isFineBI() {
        return false;
    }


    @Override
    protected void populateSubDatabaseConnectionBean(XMLADatabaseConnection ob) {
        XMLADefPane.populate(ob);
    }

    @Override
    protected XMLADatabaseConnection updateSubDatabaseConnectionBean() {
        return XMLADefPane.update();
    }

    @Override
    protected String title4PopupWindow() {
        return "XMLA";
    }
}
